import arbori.*;
import functii.*;
import operatori.*;
 
/**
 * Clasa Main
 * @author Sorica Alexandra
 */

public class Main {


	public static void main(String[] args) {
	Nod xn1=new Necunoscuta();
	Nod xn2=new Necunoscuta();
	Nod xn3=new Necunoscuta();
	Nod star = new Star();

	star.setNs(xn1);
	star.setNd(xn2);
	
	Nod plus = new Plus();
	
	plus.setNs(xn3);

	ArboreFunctional a=new ArboreFunctional(star);
	System.out.println("Calcul functie: ");

	System.out.println(a.calculeazaValoare(12));
	System.out.println(a.calculDerivata(9));
	
	
	}
}